import request from '@/utils/request'

// 获取宿舍列表
export function getList(params) {
  return request({
    url: '/room/index',
    method: 'get',
    params
  })
}

export function detail(params) {
  return request({
    url: '/room/detail',
    method: 'get',
    params
  })
}

export function save(params) {
  return request({
    url: '/room/save',
    method: 'get',
    params
  })
}

export function del(params) {
  return request({
    url: '/room/delete',
    method: 'get',
    params
  })
}

/* ----------------------- 换宿申请 ---------------------------------*/
export function getApplyList(params) {
  return request({
    url: '/room/getApplyList',
    method: 'get',
    params
  })
}
// 更换宿舍
export function saveChange(params) {
  return request({
    url: '/room/saveChange',
    method: 'get',
    params
  })
}
